package com.ngu.sys.user.dao;

import com.ngu.sys.user.model.TSysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @Description:    Mapper操作数据层
* @Author:         hq
* @CreateDate:     2019/9/28 2019/9/28
* @UpdateUser:     hq
* @UpdateDate:     2019/9/28 2019/9/28
* @UpdateRemark:   修改内容
* @Version:        1.0
*/
@Mapper
public interface TSysUserMapper {
    //根据用户名和密码查询用户
    List<TSysUser> selectByUNameOrPwd(TSysUser record);

    int deleteByPrimaryKey(Long id);

    int insert(TSysUser record);

    int insertSelective(TSysUser record);

    TSysUser selectByPrimaryKey(Long id);
    /**
    * 查询所有用户信息
    * @author      hq
    * @date        2019/9/28 12:12
    */
    List<TSysUser> selectList(TSysUser record);

    int updateByPrimaryKeySelective(TSysUser record);

    int updateByPrimaryKey(TSysUser record);
}